package com.patterns.adaptee;

/**
 * @Author Tanyu
 * @Date 2020/6/2 10:46
 * @Description 内部产生被适配对象
 * @Version 1.0
 */
public class Adapter2 implements Target {

  private Adaptee adaptee;

  public Adapter2(Adaptee adaptee) {
    super();
    this.adaptee = adaptee;
  }

  @Override
  public void handleReq() {
    adaptee.request();
  }
}
